<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('index')}">工资单</a></li>
        <li class="active"><a>详情</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('doedit')}">


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>工资发放时间
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="date" class="form-control" name="date"  value="{$res['date']}" readonly>
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>姓名
            </label>
            <div class="col-md-6 col-sm-10">
                <select name="uid" class="form-control" readonly>
                    <option value="{$res.uid}">{$res.lname}</option>
                </select>
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>职务
            </label>
            <div class="col-md-6 col-sm-10">
                <select name="sid" class="form-control" readonly>
                    <option value="{$res.sid}">{$res.ltype}</option>
                </select>
            </div>
        </div>



        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>扣除
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="ded" value="{$res['ded']}">
            </div>
        </div>





        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>扣除明细
            </label>
            <div class="col-md-6 col-sm-10">
                <textarea name="desc" class="form-control" cols="10" rows="5" >{$res.desc}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>实发
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="pay" value="{$res['pay']}" >
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>描述 </label>
            <div class="col-md-6 col-sm-10">
                <textarea name="content" id="" cols="30" rows="5"  class="form-control" >{$res['content']}</textarea>
            </div>
        </div>



        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>凭据
            </label>
            <div class="col-md-6 col-sm-10">
                <volist name="res['img']" id="v">
                    <img src="{$v}" alt="" width="250" heigh="200">
                </volist>
            </div>
        </div>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>凭据
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="file" name="img[]" class="form-control">
            </div>
        </div>

        <input type="hidden" name="id" value="{$res['id']}">

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
